import request from "@/utils/request";

//新增接口
export const addWorkStation = (data) => {
  return request({
    url: "base/workStation/addOrUpdate",
    method: "post",
    data,
  });
};

//查询接口
export const listWorkStation = (params) => {
  return request({
    url: "base/workStation/list",
    method: "get",
    params,
  });
};

export const delWorkStation = (ids) => {
  return request({
    url: "base/workStation/" + ids,
    method: "delete"
  });
};
//数据回显接口
export const getWorkStation = (data) => {
  return request({
    url: `base/workStation/detail?id=${data}`,
    method: "get",
    data,
  });
};
export const getWorkStationUser = (params) => {
  return request({
    url: `base/WorkStationUser/list`,
    method: "get",
    params,
  });
};
export const delWorkStationUser = (ids) => {
  return request({
    url: `base/WorkStationUser/${ids}`,
    method: "delete"
  });
};
export const addWorkStationUser = (data) => {
  return request({
    url: `base/WorkStationUser`,
    method: "post",
    data,
  });
};
